package com.wbp.cms.core.dao;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.wbp.cms.client.common.domain.SmsVerifyDO;
import com.wbp.cms.client.common.query.SmsVerifyQuery;

/**
 * @Description: 
 * @Department:
 * @author andy.lhc
 * @date 2016年3月10日 下午11:54:48 
 */
@Repository("smsVerifyDAO")
public class SmsVerifyDAO extends BaseDao {

  public Long  insert(SmsVerifyDO  smsVerifyDO){
    super.insert("SmsVerifyMapper.insert", smsVerifyDO) ;
    return  smsVerifyDO.getId() ;
  }
  
  public int  update(SmsVerifyDO  smsVerifyDO){
      return  super.update("SmsVerifyMapper.update", smsVerifyDO) ;
  }
   
  public SmsVerifyDO  load(Long  id){
    Object obj = super.selectOneObject("SmsVerifyMapper.load", id) ;
    return obj == null ? null : (SmsVerifyDO)obj ;
  }
  
  public List<SmsVerifyDO>  query(SmsVerifyQuery  smsVerifyQuery){
    return  super.selectList("SmsVerifyMapper.query", smsVerifyQuery) ;
  }
  
  public int  queryCount(SmsVerifyQuery  smsVerifyQuery){
    Object  obj = super.selectOneObject("SmsVerifyMapper.queryCount", smsVerifyQuery) ;
    return obj == null ? null : ((Integer)obj).intValue() ;
  }
  
  public int  delete(Long  id){
     return  super.delete("SmsVerifyMapper.delete", id) ;
  }
  
}
